package com.wzs.easytobuy.handler;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author miaomiao
 * @version 1.0.0
 * @Description TODO
 * @createTime 2021-06-23- 09:15:00
 */
@Component
public class RunHomePage implements CommandLineRunner {

    public void run(String... args) throws Exception {
        try {
            Runtime.getRuntime().exec("cmd   /c   start   http://localhost:8080/Index.do");
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
}
